package edu.xmut.proxy;

/**
 * @author 朔风
 * @date 2024-02-29 22:22
 */
public class Proxy implements Subject{

    private RealSubject realSubject;

    public Proxy() {
        this.realSubject = new RealSubject();
    }

    @Override
    public void request() {
        if (realSubject != null) {
            realSubject.request();
        }
    }
}
